package Third;
/**
 * @author 长风无言
 */
public class UserInfo {

    private float talkTime;
    private float internetTraffic;
    private float allPay;
/**
 * description:初始化成员变量
 *
 * @param talkTime 通话时长
 * @param internetTraffic 上网资费
 * @param allPay 总开销
 * @return void
 */
    public UserInfo(float talkTime, float internetTraffic, float allPay) {
        setTalkTime(talkTime);
        setInternetTraffic(internetTraffic);
        setAllPay(allPay);
    }
/**
 * description: 获取通话时长
 *
 * @return float
 */
    public float getTalkTime() {
        return talkTime;
    }
/**
 * description: 设置通话时长
 *
 * @param talkTime 通话时长
 * @return void
 */
    public void setTalkTime(float talkTime) {
        this.talkTime = talkTime;
    }
/**
 * description: 获取上网流量
 *
 * @return float
 */
    public float getInternetTraffic() {
        return internetTraffic;
    }
/**
 * description: 设置上网流量
 *
 * @param internetTraffic 上网流量
 * @return void
 */
    public void setInternetTraffic(float internetTraffic) {
        this.internetTraffic = internetTraffic;
    }
 /**
  * description: 获取总资费
  *
  * @return float
  */
    public float getAllPay() {
        return allPay;
    }
/**
 * description: 设置总资费
 *
 * @param allPay 总资费
 * @return void
 */
    public void setAllPay(float allPay) {
        this.allPay = allPay;
    }
/**
 * description: 显示基本信息
 *
 * @return void
 */
    public void show(){
        System.out.println("总资费："+getAllPay());
    }

}